package teste.br.senacrs.modelo;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import br.senacrs.modelo.Arma;

public class ArmaTest {

    private Arma nova; 
    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
    }

    @AfterClass
    public static void tearDownAfterClass() throws Exception {
    }

    @Before
    public void setUp() throws Exception {
        nova = new Arma();
        nova.setCodigo(1);
        nova.setNome("montante");
        nova.setAcerto(10);
        nova.setDano(10);
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void test() {
        assertEquals(1, nova.getCodigo());
        assertEquals("montante", nova.getNome());
        assertEquals(10, nova.getAcerto());
        assertEquals(10, nova.getDano());
    }

}
